<template>
  <el-card>
    <div slot="header" class="header">
      <span class="">线上热门搜索</span>
      <div class="search-header">
        <el-dropdown>
          <span>
            <i class="el-icon-more" style="margin-left: 610px;"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
    <div>
      <el-row :gutter="10">
        <el-col :span="12">
          <LineCharts></LineCharts>
        </el-col>
        <el-col :span="12">
          <LineCharts></LineCharts>
        </el-col>
      </el-row>
    </div>
    <!-- table表格 -->
    <el-table :data="tableData" style="width: 100%" border>
      <el-table-column label="排名" width="80" type="index"> </el-table-column>
      <el-table-column label="搜索关键字" width="width"> </el-table-column>
      <el-table-column label="用户数" sortable width="width"> </el-table-column>
      <el-table-column label="周涨幅" sortable width="width"> </el-table-column>
    </el-table>
    <!-- 分页器 -->
    <el-pagination layout="prev, pager, next" :total="1000" class="pagination"> </el-pagination>
  </el-card>
</template>
  
  <script>
import LineCharts from "./LineCharts";
export default {
  name: "Search",
  data() {
    return {
      tableData: [{}],
    };
  },
  components: {
    LineCharts,
  },
};
</script>
  
<style scoped>
.header {
  border-bottom: 1px solid #eee;
  padding: 5px 0px;
}
.search-header {
  display: flex;
  justify-content: space-between;
}
.pagination{
  text-align: center;
}
</style>